import request from '@/utils/request'

// 查询费用列表
export function listACost(query) {
  return request({
    url: '/aCost/aCost/list',
    method: 'get',
    params: query
  })
}
export function listACostNoPage(query) {
  return request({
    url: '/aCost/aCost/listNoPage',
    method: 'get',
    params: query
  })
}

// 查询费用详细
export function getACost(costId) {
  return request({
    url: '/aCost/aCost/' + costId,
    method: 'get'
  })
}

// 新增费用
export function addACost(data) {
  return request({
    url: '/aCost/aCost',
    method: 'post',
    data: data
  })
}

// 修改费用
export function updateACost(data) {
  return request({
    url: '/aCost/aCost',
    method: 'put',
    data: data
  })
}

// 删除费用
export function delACost(costId) {
  return request({
    url: '/aCost/aCost/' + costId,
    method: 'delete'
  })
}
